package constants;
//This is a sort of enum.
//It defines the names of property change events.
//The strings are arbitrary but they must be unique.
public class CHANGE
	{
	public final static String ROOM = "0";					//When a room is added(oldValue is null),changed or deleted(newValue is null).
	public final static String DEPARTMENT = "1";			//When a department is added(oldValue is null),changed or deleted(newValue is null).
	public final static String PERSON = "2";				//When a person is added(oldValue is null),changed or deleted(newValue is null).
	public final static String APPOINTMENT = "3";			//When an appointment is added(oldValue is null) or changed(cancelled). If an appointment is changed to a new appointment, this will be indicated by cancelling the old appointment and creating a new one.
	public final static String MESSAGE = "4";				//When a message is delivered to the user.
	public final static String APPOINTMENT_FLUSH = "5";		//When all appointments are flushed from the system, generally as a consequence of requesting a new time frame.
	public final static String ROOM_AVAILABILITY = "6";		//When the availability for a room is updated.
	}
